package com.zhny.aiot.three.ball.valve.plugin.model;

import com.zhny.aiot.plugin.ActionValue;
import com.zhny.aiot.plugin.PropertyValue;
import com.zhny.aiot.plugin.model.*;
import lombok.Data;

@Data
public class BallThreeValveStoreEntry extends StoreEntity {
    @PropertyValue(alias = "电压",description = "电池电压",unit = "V",icon=IconConstract.Voltage,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check, commandCode="queryVoltage", eventType=EventType.Click)
    })
    private String voltage;
    @PropertyValue(alias = "A通道压力",description = "A过水压力",unit = "mpa",icon=IconConstract.Pressure,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check, commandCode="queryPressure", eventType=EventType.Click)
    })
    private String aPressure;
    @PropertyValue(alias = "B通道压力",description = "B过水压力",unit = "mpa",icon=IconConstract.Pressure,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check, commandCode="queryPressure", eventType=EventType.Click)
    })
    private String bPressure;
    @PropertyValue(alias = "压力上限",description = "压力上限",icon=IconConstract.Pressure,variableType=VariableType.InputValue,actions={
            @ActionValue(name=Operate.Value,commandCode="upValue",eventType=EventType.Input),
            @ActionValue(name=Operate.Query,commandCode="upDownQuery",eventType=EventType.Click)
    })
    private String pressureUp;

    @PropertyValue(alias = "压力下限",description = "压力下限",icon=IconConstract.Pressure,variableType=VariableType.InputValue,actions={
            @ActionValue(name=Operate.Value,commandCode="downValue",eventType=EventType.Input,paramClass=InputParam.class),
            @ActionValue(name=Operate.Query,commandCode="upDownQuery",eventType=EventType.Click)
    })
    private String pressureDown;

    @PropertyValue(alias = "A阀门状态",description = "A阀门状态",unit = "%",icon=IconConstract.Other,variableType=VariableType.AdJustableValve,actions={
            @ActionValue(name=Operate.Value,commandCode="aValue",eventType=EventType.Input,paramClass=InputParam.class),
            @ActionValue(name=Operate.Init,commandCode="initialize",eventType=EventType.Input),
            @ActionValue(name=Operate.Query,commandCode="query",eventType=EventType.Click)
    })
    private String aStatus;
    @PropertyValue(alias = "B阀门状态",description = "A阀门状态",unit = "%",icon=IconConstract.Other,variableType=VariableType.AdJustableValve,actions={
            @ActionValue(name=Operate.Value,commandCode="bValue",eventType=EventType.Input,paramClass=InputParam.class),
            @ActionValue(name=Operate.Init,commandCode="initialize",eventType=EventType.Input),
            @ActionValue(name=Operate.Query,commandCode="query",eventType=EventType.Click)
    })
    private String bStatus;
}
